import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

import mobileRouters from './modules/mobile-routes.js'
import pcRouter from '@/router/modules/pc-router.js'
import { isMobileTerminal } from '@/utils/flexible.js'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: isMobileTerminal.value ? mobileRouters : pcRouter
  // [
  //   {
  //     path: '/',
  //     name: 'home',
  //     component: HomeView
  //   },
  //   {
  //     path: '/about',
  //     name: 'about',
  //     component: () => import('../views/AboutView.vue')
  //   }
  // ]
})

export default router
